<template>
 <div class="banner">
    <van-swipe :autoplay="3000">
      <van-swipe-item v-for="item in banner" :key="item.id">
        <img :src="item.pic" />
      </van-swipe-item>
    </van-swipe>
 </div>
</template>

<script>
export default {
  props: ["banner"],
  name: "",
  data() {
    return {};
  },
  mounted() {},
  methods: {},
  computed: {},
  watch: {}
};
</script>

<style scoped>
.banner {
  width: 100%;
  height: 100%;
  overflow: auto;
}
.van-swipe-item {
  width: 100%;
  height: 375px;
}
.van-swipe-item > img {
  width: 100%;
  height: 100%;
}
</style>